package cn.tedu.tmall.admin.mall.schedule;

import cn.tedu.tmall.admin.mall.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
public class OrderSchedule {
    @Autowired
    private IOrderService service;
    @Scheduled(fixedRate = 60*1000)
    public void closeUnpaid(){
        service.closeUnpaid();
    }
}
